<?php
/* Smarty version 3.1.30, created on 2017-04-21 11:04:26
  from "D:\phpStudy\WWW\mvc2\Application\Index\view\index.html" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_58f976baedcaf2_21454082',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '582cefdca1d47a33058bb1553567c60f0a563f40' => 
    array (
      0 => 'D:\\phpStudy\\WWW\\mvc2\\Application\\Index\\view\\index.html',
      1 => 1492743684,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58f976baedcaf2_21454082 (Smarty_Internal_Template $_smarty_tpl) {
?>
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" type="text/css" href="./public/css/index.css" ></link>
    </head>
    <body>
       <div id="header">
           <div id="div1"><a href="index.php?m=Index&c=new&a=add">添加帖子</a>&nbsp;
              &nbsp;<a href="index.php?m=Index&c=user&a=userupdateSmarty&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
">用户信息</a></div>
           
            <div id="div2"><a href="index.php?m=Index&c=user&a=login">登录</a>|
                <a href="index.php?m=Index&c=user&a=register">注册</a></div>
        </div>
             <div id="div3"> 
               <table>
            <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['list']->value, 'v', false, 'k');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['v']->value) {
?>
               <tr>
                   <td><a href="index.php?m=Index&c=new&a=newContent"><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</a></td>
               </tr>
            <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

            </table>
            <hr/>
            <a href="index.php?m=Index&c=index&a=index&page=1">首页</a>
           <?php if ($_smarty_tpl->tpl_vars['page']->value > 1) {?>
            <a href="index.php?m=Index&c=index&a=index&page=<?php echo $_smarty_tpl->tpl_vars['page']->value-1;?>
">上一页</a>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['page']->value < $_smarty_tpl->tpl_vars['pagecount']->value) {?>
            <a href="index.php?m=Index&c=index&a=index&page=<?php echo $_smarty_tpl->tpl_vars['page']->value+1;?>
">下一页</a>
            <?php }?>
            <a href="index.php?m=Index&c=index&a=index&page=<?php echo $_smarty_tpl->tpl_vars['pagecount']->value;?>
">尾页</a>
             </div>
    </body>
</html>

<?php }
}
